/*
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *如果数据库字段发生变化，请在代码生器重新生成此Model
 */
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using VOL.Entity.SystemModels;

namespace VOL.Entity.DomainModels
{
    [Entity(TableCnName = "费用报销",TableName = "Fk_reim",DetailTable =  new Type[] { typeof(Fk_reimlist)},DetailTableCnName = "费用明细")]
    public partial class Fk_reim:BaseEntity
    {
        /// <summary>
       ///序号
       /// </summary>
       [Key]
       [Display(Name ="序号")]
       [Column(TypeName="int")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public int reim_id { get; set; }

       /// <summary>
       ///部门名称
       /// </summary>
       [Display(Name ="部门名称")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? depid_oa { get; set; }

       /// <summary>
       ///姓名
       /// </summary>
       [Display(Name ="姓名")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       public string username { get; set; }

       /// <summary>
       ///填报时间
       /// </summary>
       [Display(Name ="填报时间")]
       [Column(TypeName="datetime")]
       [Editable(true)]
       public DateTime? bdatetime { get; set; }

       /// <summary>
       ///总金额(含税)
       /// </summary>
       [Display(Name ="总金额(含税)")]
       [DisplayFormat(DataFormatString="18,2")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       public decimal? total_j { get; set; }

       /// <summary>
       ///
       /// </summary>
       [Display(Name ="CreateID")]
       [Column(TypeName="int")]
       public int? CreateID { get; set; }

       /// <summary>
       ///
       /// </summary>
       [Display(Name ="CreateDate")]
       [Column(TypeName="datetime")]
       public DateTime? CreateDate { get; set; }

       /// <summary>
       ///步骤
       /// </summary>
       [Display(Name ="步骤")]
       [Column(TypeName="int")]
       public int? stepid { get; set; }

       /// <summary>
       ///当前处理人
       /// </summary>
       [Display(Name ="当前处理人")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       public string step_username { get; set; }

       /// <summary>
       ///业务类型
       /// </summary>
       [Display(Name ="业务类型")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? typeid { get; set; }

       /// <summary>
       ///附件
       /// </summary>
       [Display(Name ="附件")]
       [Column(TypeName="varchar(max)")]
       [Editable(true)]
       public string fujian { get; set; }

       /// <summary>
       ///收款人
       /// </summary>
       [Display(Name ="收款人")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       public string skr { get; set; }

       /// <summary>
       ///银行卡号
       /// </summary>
       [Display(Name ="银行卡号")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       public string cardno { get; set; }

       /// <summary>
       ///开户行
       /// </summary>
       [Display(Name ="开户行")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       public string bank { get; set; }

       /// <summary>
       ///审核金额
       /// </summary>
       [Display(Name ="审核金额")]
       [DisplayFormat(DataFormatString="18,2")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       public decimal? check_je { get; set; }

       /// <summary>
       ///应扣项目
       /// </summary>
       [Display(Name ="应扣项目")]
       [Column(TypeName="varchar(max)")]
       [Editable(true)]
       public string ykcontent { get; set; }

       /// <summary>
       ///应扣金额
       /// </summary>
       [Display(Name ="应扣金额")]
       [DisplayFormat(DataFormatString="18,2")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       public decimal? yk_je { get; set; }

       /// <summary>
       ///付款方式
       /// </summary>
       [Display(Name ="付款方式")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       public string fkfs { get; set; }

       /// <summary>
       ///附件数量
       /// </summary>
       [Display(Name ="附件数量")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? fj_num { get; set; }

       /// <summary>
       ///合同
       /// </summary>
       [Display(Name ="合同")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       public string contract { get; set; }

       /// <summary>
       ///业务内容
       /// </summary>
       [Display(Name ="业务内容")]
       [Column(TypeName="varchar(max)")]
       [Editable(true)]
       public string fkcontent { get; set; }

       /// <summary>
       ///扣款事由
       /// </summary>
       [Display(Name ="扣款事由")]
       [Column(TypeName="varchar(max)")]
       [Editable(true)]
       public string remark { get; set; }

       /// <summary>
       ///实付金额
       /// </summary>
       [Display(Name ="实付金额")]
       [DisplayFormat(DataFormatString="18,2")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       public decimal? sf_je { get; set; }

       /// <summary>
       /// 会签人员
       /// </summary>
       [Display(Name =" 会签人员")]
       [MaxLength(50)]
       [Column(TypeName="varchar(50)")]
       public string hq_username { get; set; }

       /// <summary>
       ///款项性质
       /// </summary>
       [Display(Name ="款项性质")]
       [MaxLength(50)]
       [Column(TypeName="varchar(50)")]
       [Editable(true)]
       public string kxprop { get; set; }

       /// <summary>
       ///费用发生时间
       /// </summary>
       [Display(Name ="费用发生时间")]
       [MaxLength(10)]
       [Column(TypeName="varchar(10)")]
       [Editable(true)]
       public string fsny { get; set; }

       /// <summary>
       ///收款方类型
       /// </summary>
       [Display(Name ="收款方类型")]
       [MaxLength(50)]
       [Column(TypeName="varchar(50)")]
       [Editable(true)]
       public string skprop { get; set; }

       /// <summary>
       ///币种
       /// </summary>
       [Display(Name ="币种")]
       [MaxLength(20)]
       [Column(TypeName="varchar(20)")]
       [Editable(true)]
       public string biz { get; set; }

       /// <summary>
       ///付款日期
       /// </summary>
       [Display(Name ="付款日期")]
       [Column(TypeName="date")]
       [Editable(true)]
       public DateTime? fkrq { get; set; }

       /// <summary>
       ///付款比例(%)
       /// </summary>
       [Display(Name ="付款比例(%)")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? fkbl { get; set; }

       /// <summary>
       ///应扣金额(大写)
       /// </summary>
       [Display(Name ="应扣金额(大写)")]
       [MaxLength(100)]
       [Column(TypeName="varchar(100)")]
       [Editable(true)]
       public string yk_je_big { get; set; }

       /// <summary>
       ///实付金额(大写)
       /// </summary>
       [Display(Name ="实付金额(大写)")]
       [MaxLength(100)]
       [Column(TypeName="varchar(100)")]
       [Editable(true)]
       public string sf_je_big { get; set; }

       /// <summary>
       ///审核金额(大写)
       /// </summary>
       [Display(Name ="审核金额(大写)")]
       [MaxLength(100)]
       [Column(TypeName="varchar(100)")]
       [Editable(true)]
       public string check_je_big { get; set; }

       /// <summary>
       ///含税总额(大写)
       /// </summary>
       [Display(Name ="含税总额(大写)")]
       [MaxLength(100)]
       [Column(TypeName="varchar(100)")]
       [Editable(true)]
       public string total_j_big { get; set; }

       /// <summary>
       ///报销成本中心
       /// </summary>
       [Display(Name ="报销成本中心")]
       [MaxLength(50)]
       [Column(TypeName="varchar(50)")]
       [Editable(true)]
       public string bx_rcntr { get; set; }

       /// <summary>
       ///出差任务
       /// </summary>
       [Display(Name ="出差任务")]
       [MaxLength(500)]
       [Column(TypeName="varchar(500)")]
       [Editable(true)]
       public string cn_task { get; set; }

       /// <summary>
       ///同行人员
       /// </summary>
       [Display(Name ="同行人员")]
       [MaxLength(500)]
       [Column(TypeName="varchar(500)")]
       [Editable(true)]
       public string txren { get; set; }

       [Display(Name ="费用明细")]
       [ForeignKey("reim_id")]
       public List<Fk_reimlist> Fk_reimlist { get; set; }

    }
}